#ifndef FORM_H
#define FORM_H

#include"widget.h"

#include <QWidget>
#include<QPixmap>
#include<QMap>
#include <QTcpSocket>
#include <QTcpServer>

namespace Ui {
class Form;
}

class Form : public QWidget
{
    Q_OBJECT

public:
    explicit Form(QWidget *parent = 0);
    ~Form();
    QPixmap pix;
    void onNewConnection();
    void OnReadReady();

private slots:
    void on_sum_clicked();
    void on_exit2_clicked();


    void on_pushButton_clicked();

private:
    Ui::Form *ui;
    QMap<int,int> mapPirce;
    QMap<int,QString> mapName;
    QTcpServer *m_pServer;
    QTcpSocket *m_pSocket;



};

#endif // FORM_H
